<%--
  Created by IntelliJ IDEA.
  User: 柳胜酉
  Date: 2023/4/21
  Time: 19:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>供货商管理页面</title>
  <link href="${pageContext.request.contextPath}/statics/style/css/Site.css" rel="stylesheet" type="text/css"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/zy.layout.css" rel="stylesheet"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/zy.form.css" rel="stylesheet"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/index.css" rel="stylesheet"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/add.css" rel="stylesheet"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/zy.menu.css" rel="stylesheet"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/zy.all.css" rel="stylesheet"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/amazeui.min.css" rel="stylesheet"/>
  <link href="${pageContext.request.contextPath}/statics/style/css/admin.css" rel="stylesheet"/>
</head>
<script src="${pageContext.request.contextPath}/statics/scripts/jquery-3.6.1.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/statics/scripts/Jqueryplugs.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/statics/scripts/_layout.js" type="text/javascript"></script>
<body>
<div style="position: absolute; left: 180px; right: 10px;background: #F8F8F8">
  <div class="dvcontent">
    <div>
      <div class="tabs">
        <div class="hd">
          <ul>
            <li class="on" style="box-sizing: initial;-webkit-box-sizing: initial;">选择供应商</li>
            <li class="on" style="box-sizing: initial;-webkit-box-sizing: initial;">
              <a href="${pageContext.request.contextPath}/admin/admin_supplier_add">
                新增供应商</a>
            </li>
          </ul>
        </div>
        <div class="bd">
          <ul style="display: block;padding: 20px;">
            <li>
              <!--分页显示角色信息 start-->
              <div id="dv1">
                <table class="table" id="tbRecord">
                  <thead>
                  <th>供应商编号</th>
                  <th>供应商名</th>
                  <th>供货商地址</th>
                  <th>供货商电话</th>
                  <th>更新</th>
                  <th>删除</th>
                  </thead>
                  <c:forEach items="${supplier}" var="item">
                    <form action="${pageContext.request.contextPath}/doUpdateSupplier?supplier_id=${item.supplier_id}" method="post">
                      <tr>
                        <td>${item.supplier_id}</td>
                        <td><label>
                          <input type="text" name="supplier_name" id="supplier_name"
                                 value="${item.supplier_name}">
                        </label></td>
                        <td><label>
                          <input type="text" name="address" id="address"
                                 value="${item.address}">
                        </label></td>
                        <td><label>
                          <input type="text" name="phone" id="phone"
                                 value="${item.phone}">
                        </label></td>
                        <td>
                          <input type="submit" value="更新" onclick="return confirm('确认更新？');">
                        </td>
                        <td><a href="${pageContext.request.contextPath}/doDeleteSupplier?id=${item.supplier_id}"
                               onclick="return confirm('确认删除？');" style="font-size: 16px">删除</a>
                        </td>
                      </tr>
                    </form>
                  </c:forEach>
                </table>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </div>

    <div class="copyrights" id="copyrights">
      &copy; 2023 madballpad All rights reserved. <a
            href="tencent://Message/?Uin=842294358&websiteName=www.oicqzone.com&Menu=yes" title="版权信息">
      联系管理员</a>
    </div>
  </div>
</div>
</body>

</html>
